//
//  TheBlacklistController.m
//  OnionHome
//
//  Created by fengjie on 2019/9/14.
//  Copyright © 2019 FengJie. All rights reserved.
//

#import "TheBlacklistController.h"
#import "TheBlacklistCell.h"

@interface TheBlacklistController ()
/**listViewTool*/
@property (nonatomic,strong)UITableViewTool*listViewTool;
/**数据源*/
@property (nonatomic,strong)NSMutableArray*dataSoure;

@end

@implementation TheBlacklistController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"黑名单";
    [self.listViewTool.listView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
}
-(UITableViewTool*)listViewTool{
    if(!_listViewTool){
        _listViewTool=[[UITableViewTool alloc] initWithFrame:CGRectZero style:UITableViewStylePlain registerCellClassName:NSStringFromClass([TheBlacklistCell class]) identifier:NSStringFromClass([TheBlacklistCell class]) dataArray:self.dataSoure delegate:self dataSourceBlock:^(id  _Nonnull TempCell, NSIndexPath * _Nonnull indexPath, id  _Nonnull TempData) {
            
        } selectCell:^(id  _Nonnull TempCell, NSIndexPath * _Nonnull indexPath, id  _Nonnull TempData) {
            
        }];
        [_listViewTool.listView setSeparatorInset:UIEdgeInsetsMake(0, 0, 0, 0)];
        [_listViewTool.listView setSeparatorColor:UIColorFromRGB(0xE7EEE7)];
    }
    return _listViewTool;
}
-(NSMutableArray *)dataSoure{
    if (!_dataSoure) {
        NSArray * array = @[@"",@"",@"",@"",@"",@"",@"",@"",];
        _dataSoure =[NSMutableArray array];
        [_dataSoure addObjectsFromArray:array];
    }
    return _dataSoure;
}

@end
